{extend name="common/public" /}
{block name="content"}

<div class="widget-body am-fr">
    <div class="am-form-group">
        <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
                <button type="button" onclick="openUrl('{:url(" addrole
                ")}')" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</button>
                <button type="button" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span>
                    保存
                </button>
                <button type="button" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-archive"></span>
                    审核
                </button>
                <button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span>
                    删除
                </button>
            </div>
        </div>
    </div>
</div>

<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">团队管理</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <div class="widget-body  widget-body-lg am-fr">

            <table width="100% " class="am-table am-table-compact am-table-bordered tpl-table-black ">
                <thead>

                <tr>
                    <th>
                        id
                    </th>
                    <th>
                        领导名字
                    </th>
                    <th>
                        到达好多人数
                    </th>
                    <th>
                        分成比例
                    </th>
                    <th>
                        上级id的要求
                    </th>
                    <th>
                        直推比例
                    </th>
                    <th>
                        间接推的比例
                    </th>
                    <th>
                        个人业绩的纯营业额 3000 担保金额也算
                    </th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                {foreach $list as $v}

                <tr class="gradeX">
                    <th> {$v.id}</th>

                    <th> {$v.name}</th>

                    <th> {$v.number}</th>

                    <th> {$v.proportion}</th>

                    <th> {$v.parent_id}</th>

                    <th> {$v.direct}</th>

                    <th> {$v.indirect}</th>

                    <th> {$v.pv}</th>

                    <td>

                        <div class="tpl-table-black-operation">
                            <a onclick="openUrl('{:url('edit',['id'=>$v['id']])}')">
                                <i class="am-icon-pencil"></i> 权限分配
                            </a>
                            <a href="javascript:;" class="tpl-table-black-operation-del">
                                <i class="am-icon-trash"></i> 删除
                            </a>
                        </div>

                    </td>

                </tr>

                {/foreach}


                </tbody>
            </table>

            {$list|raw}

        </div>
    </div>
</div>

{/block}

{/extend}
